<!DOCTYPE html>
<html>
	<head>
	<title>管理中心</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
			<meta name="viewport"
				content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
			<meta content="black" name="apple-mobile-web-app-status-bar-style">
			<meta name="format-detection" content="telephone=no" />
			<meta name="format-detection" content="email=no" />
			<meta name="apple-mobile-web-app-capable" content="yes" />
			<!--删除默认的苹果工具栏和菜单栏。-->
			<link rel="stylesheet" href="plug-in/ydui/css/ydui.css?rev=@@hash"/>
			<link rel="stylesheet" href="plug-in/ydui/css/demo.css"/>
			<script src="plug-in/ydui/js/ydui.flexible.js"></script>
			<style type="text/css">
				.demo-pagetitle{
					position:relative;
					top:10%;
				}
				.g-scrollview{
					top:10%
				}
		    	.m-cell{
		    		background:transparent;
		    	}
		    	.m-cell a.cell-item, .m-cell label.cell-item{
		    		background: transparent;
		    	}
				.m-grids-4 .grids-item {
					width: 50%;
				}
				.demo-icons [class^="icon-"]:before, .demo-icons [class*=" icon-"]:before { font-size: 0.6rem; color: #FF685D; }
	    	</style>
			<link rel="stylesheet" href="webpage/css/login-main.css" />
			<script type="text/javascript" src="webpage/jQuery/jquery-1.9.1.js"></script>
	</head>
	<body style="background-image: url('webpage/images/02.png'); background-repeat:no-repeat; background-size:cover; background-position:0% 0%;">
		<header class="m-navbar">
        	<a class="navbar-item" href="javascript:history.go(-1)"><i class="back-ico"></i></a>
        	<div class="navbar-center"><span class="navbar-title">管理中心</span></div>
    		</header>
		<!-- <div class="div"></div> -->
		<section class="g-scrollview">
	        
	        <div class="m-cell" style="position:relative; top:100px;">
	            <a onclick="js_companise()" class="cell-item">
	                <div class="cell-left">供电所名称</div>
	                <div class="cell-right cell-arrow"></div>
	            </a>
	            <a onclick="js_lineinfo()" class="cell-item">
	                <div class="cell-left">线路</div>
	                <div class="cell-right cell-arrow"></div>
	            </a>
	            <a onclick="js_melfunction()" class="cell-item">
	                <div class="cell-left">故障类型</div>
	                <div class="cell-right cell-arrow"></div>
	            </a>
	            <a onclick="js_substation()" class="cell-item">
	                <div class="cell-left">变电站信息</div>
	                <div class="cell-right cell-arrow"></div>
	            </a>
	            <a onclick="js_user()" class="cell-item">
	                <div class="cell-left">用户</div>
	                <div class="cell-right cell-arrow"></div>
	            </a>
	        </div>
		</section>
	</body>
		<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
	<script src="webpage/js/ydui.city.js"></script>
	<script src="plug-in/ydui/js/ydui.js"></script>
	<script src="http://malsup.github.io/jquery.form.js"></script>
	<script type="text/javascript" src="plug-in/Validform/js/Validform_v5.3.1_min_zh-cn.js"></script>
	<script type="text/javascript" src="plug-in/Validform/js/initValidform.js"></script>
<script type="text/javascript">
	$(function(){
		var role = "管理员";
		volidRole(role);
	})
	function js_companise(){
		window.location.href = "systemController.do?toCompanise";
	}
	function js_lineinfo(){
		window.location.href = "systemController.do?toLineinfo";
	}
	function js_melfunction(){
		window.location.href = "systemController.do?toMelfunction";
	}
	function js_substation(){
		window.location.href = "systemController.do?toSubsitation"
	}
	function js_user(){
		window.location.href = "systemController.do?toUser"
	}
	function volidRole(role){
			$.ajax({
				cache: false,
				type: 'post', // 提交方式 get/post
				async:false,
		   		url: "volidformController.do?volidRole", // 需要提交的 url
		   		dataType:"json",
		   		data:{"s_role":role},
		       	success: function(json){
		       		if(json.success){
		       			return true;
		       		}else{
		       			alert("您没有权限！如需获取权限，请联系管理员！");
		       			window.location.href="loginController.do?login";
		       		}
					return false;
		       	},
		       	error : function(){
		       		alert("您的网络可能出现了问题，请重试！");
		       	}
			})
			return false;
		};
	</script>
</html>